//
//  Service1Manager.swift
//  Service1
//
//  Created by 章旭松 on 16/8/26.
//  Copyright © 2016年 章旭松. All rights reserved.
//

import Foundation
import Component

// 单例入口
public final class Service1Manager {
    public static let sharedInstance = Service1Manager()
    
    public func invokeWithUrl(url: String) {
        print(url)
        Component.invokeWithUrl("Component://function?from=Service1&param1=value1&param2=value2")
    }
}

// 全局函数入口
public func invokeWithUrl(url: String) {
    Service1Manager.sharedInstance.invokeWithUrl(url)
}